#include <stdio.h>
#define N 100
int my_strcmp(const char *s1, const char *s2) {
    while (*s1 == *s2) {
        if (*s1 == '\0' || *s2 == '\0') {
            return 0;
        }
        s1++;
        s2++;
    }
    return (*s1 - *s2);
}

int main() {
    char str1[N];
    char str2[N];
    printf("Enter the first string: ");
    //scanf("%s", str1);
    gets(str1);
    printf("Enter the second string: ");
    //scanf("%s", str2);
    gets(str2);
    int ret = my_strcmp(str1, str2);
    printf("%d\n", ret);
    return 0;
}